import Taro from '@tarojs/taro';

export default {
  success: (text) => {
    Taro.showToast({
      title: text,
      icon: 'success',
      duration: 2000
    })
  },
  error: (text) => {
    Taro.showToast({
      title: text,
      icon: 'error',
      duration: 2000
    })
  },
};
